package com.wang.mall.service;

import com.wang.mall.bean.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.mall.util.PageUtils;

import java.util.List;

public interface SysUserService extends IService<SysUser>{


    PageUtils queryPage(Integer page, Integer size, String username);

    /**
     * 查询用户的所有菜单ID
     */
    List<Long> queryAllMenuId(Long createUserId);

    void saveUser(SysUser user);

    void update(SysUser user);

    /**
     * 删除用户
     * @param userIds
     */
    void deleteBatch(Long[] userIds);

    boolean updatePassword(String newPassword, String password, Long userId);

}
